<?php

use think\migration\Migrator;
use think\migration\db\Column;

class CreatePhoneMessage extends Migrator
{
    public function up()
    {
        $table = $this->table('phone_message', ['signed' => false, 'comment' => '手机信息表']);
//        $table->addColumn('phone_type', 'string', ['limit' => 100, 'default' =>'', 'comment' => '手机类型'])
//            ->addColumn('service_status', 'string', ['limit' => 50, 'default' => '', 'comment' => '保修状态'])
//            ->addColumn('phone_problem_reason', 'string', ['limit' => 100, 'default' => '', 'comment' => '手机故障原因'])
//            ->addColumn('create_time', 'integer', ['limit' => 10, 'default' => 0, 'comment' => '创建时间'])
//            ->addColumn('update_time', 'integer', ['limit' => 10, 'default' => 0, 'comment' => '更新时间'])
//            ->create();
    }

    public function down()
    {
        $this->dropTable('phone_message');
    }
}
